lcPropGetStrA Home

Retrieves a property's value of ANSI string type. This function is intended for use in Visual Basic 6.0 programs.

 int lcPropGetStrA (
   HANDLE hObject,
   int idProp,
   char* szBuf,
   int BufSize
 );

Parameters
hObject
  Handle to object.
idProp
  Property's identifier.
szBuf
  A pointer to a buffer that receives the property string. Your application must allocate memory for the buffer, enough to place the property value.
BufSize
  Size of the buffer, maximal number of characters that can be written into the buffer, including terminating null character.

Return Value

  A number of characters copied to the destination buffer, not including the terminating null character.

See Also

  lcPropGetStr


Code Sample

 
  Dim sName As String
  Dim nSize As Integer
  
  sName = Space(256)
  nSize = lcPropGetStrA(hLayer, LC_PROP_LAYER_NAME, sName, 256)
  sName = Left(sName, nSize)